FROM registry.cn-hangzhou.aliyuncs.com/global_public/openjdk8-fontconfig:latest

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone

WORKDIR /usr/local/

ENTRYPOINT exec java $JAVA_OPTS -jar app.jar

COPY ./target/api-gateway*.jar /usr/local/app.jar